package cz.muni.fi.pa165.bookingmanager.dto;

import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Štefan Repček
 */
@XmlRootElement
public class CustomerDTO {

    private Long id;
    private String firstName;
    private String surName;
    private String numberOfIdCard;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getSurName() {
        return surName;
    }

    public void setSurName(String surName) {
        this.surName = surName;
    }

    public String getNumberOfIdCard() {
        return numberOfIdCard;
    }

    public void setNumberOfIdCard(String numberOfIdCard) {
        this.numberOfIdCard = numberOfIdCard;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof CustomerDTO)) {
            return false;
        }
        CustomerDTO other = (CustomerDTO) object;
        if ((this.id == null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return firstName + " " + surName;
    }
}
